Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force set --offline if no database setup #1797

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nakib103
Copy link
Contributor

@nakib103 nakib103 commented Nov 19, 2024

When we do not provide --database or --cache VEP does not setup database connection just like --offline. But some part of the code is not aware of this fact and tries to connect to database and fails.

An example is when VEP is used with --gff and --fasta and provided with input that contains variant ids which does not work without database. VEP will fail with message -

Can't call method "db" on an undefined value at /opt/vep/src/ensembl-vep/modules/Bio/EnsEMBL/VEP/Parser/ID.pm line 159, <__ANONIO__> line 1

Which is misleading. Also VEP should not try to connect to database in this scenario.

In this PR we force set --offline if no database setup is made.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant